'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 联盟基本功能--接口集合
 * @author sundbcn@gmail.com (sun debing)
 */

var unionList = require('./unionList/unionList.js');
var unionUserList = require('./unionList/unionUserList.js');
var unionCheckList = require('./unionList/unionCheckList.js');
var unionMsgList = require('./unionList/unionMsgList.js');
var unionTaskList = require('./unionList/unionTaskList.js');
var unionShopList = require('./unionList/unionShopList.js');
var unionTechList = require('./unionList/unionTechList.js');
var unionSearchList = require('./unionList/unionSearchList.js');
var unionGetUnionRankList = require('./unionList/getUnionRankList.js');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 公会查找联盟
 */
Handler.prototype.unionSearchList = function (msg, session, next) {
    unionSearchList(msg, session, next);
};

/**
 * 公会列表
 */
Handler.prototype.unionList = function (msg, session, next) {
    unionList(msg, session, next);
};

/**
 * 公会成员列表
 */
Handler.prototype.unionUserList = function (msg, session, next) {
    unionUserList(msg, session, next);
};

/**
 * 公会成员审核列表
 */
Handler.prototype.checkList = function (msg, session, next) {
    unionCheckList(msg, session, next);
};

/**
 * 公会信息列表
 */
Handler.prototype.unionMsgList = function (msg, session, next) {
    unionMsgList(msg, session, next);
};

/**
 * 公会信息列表
 */
Handler.prototype.unionTaskList = function (msg, session, next) {
    unionTaskList(msg, session, next);
};

/**
 * 联盟商城
 */
Handler.prototype.unionShopList = function (msg, session, next) {
    unionShopList(msg, session, next);
};

/**
 * 科技列表
 */
Handler.prototype.unionTechList = function (msg, session, next) {
    unionTechList(msg, session, next);
};

/**
 * 联盟排行榜
 */
Handler.prototype.getUnionRankList = function (msg, session, next) {
    unionGetUnionRankList(msg, session, next);
};
